.class Lcom/xingbook/ui/a/l;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/a/i;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/a/l;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/xingbook/ui/a/l;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/a/i;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;I)V

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->c(Lcom/xingbook/ui/a/i;)I

    move-result v2

    if-ne v1, v2, :cond_2

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->d(Lcom/xingbook/ui/a/i;)Z

    move-result v1

    if-eqz v1, :cond_5

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;I)V

    :cond_2
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->c(Lcom/xingbook/ui/a/i;)I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_6

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->e(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->f(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;Landroid/graphics/Bitmap;)V

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;Landroid/graphics/Bitmap;)V

    :goto_1
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->g(Lcom/xingbook/ui/a/i;)V

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->d(Lcom/xingbook/ui/a/i;)Z

    move-result v1

    if-nez v1, :cond_3

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->c(Lcom/xingbook/ui/a/i;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ge v1, v2, :cond_4

    :cond_3
    new-instance v1, Lcom/xingbook/ui/a/m;

    invoke-direct {v1, p0, v0}, Lcom/xingbook/ui/a/m;-><init>(Lcom/xingbook/ui/a/l;Lcom/xingbook/ui/a/i;)V

    invoke-virtual {v1}, Lcom/xingbook/ui/a/m;->start()V

    :cond_4
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->j(Lcom/xingbook/ui/a/i;)[I

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v0

    aget v0, v1, v0

    int-to-long v0, v0

    invoke-virtual {p0, v3, v0, v1}, Lcom/xingbook/ui/a/l;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0

    :cond_5
    invoke-virtual {v0, v3}, Lcom/xingbook/ui/a/i;->c(Z)V

    goto :goto_0

    :cond_6
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->f(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v1

    if-nez v1, :cond_8

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v1

    if-nez v1, :cond_7

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->c(Lcom/xingbook/ui/a/i;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;I)V

    :goto_2
    const-wide/16 v0, 0x64

    invoke-virtual {p0, v3, v0, v1}, Lcom/xingbook/ui/a/l;->sendEmptyMessageDelayed(IJ)Z

    goto/16 :goto_0

    :cond_7
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;I)V

    goto :goto_2

    :cond_8
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->e(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v1

    if-nez v1, :cond_9

    invoke-static {v0}, Lcom/xingbook/ui/a/i;->e(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    :cond_9
    invoke-static {v0}, Lcom/xingbook/ui/a/i;->f(Lcom/xingbook/ui/a/i;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->a(Lcom/xingbook/ui/a/i;Landroid/graphics/Bitmap;)V

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/xingbook/ui/a/i;->b(Lcom/xingbook/ui/a/i;Landroid/graphics/Bitmap;)V

    goto :goto_1
.end method
